import Vue from 'vue'
import VueRouter from 'vue-router'
import FirstComponent from "../components/FirstComponent";
import Main from "../components/Main";
import Login from "../components/Login";

//安装路由
Vue.use(VueRouter)

//配置导出路由
export default new VueRouter({
  routes: [
    {
      //路由路径
      path: "/first",
      name: "first",
      //跳转的组件
      component: FirstComponent
    },
    {path: "/main", name: "main", component: Main},
    {path: "/login", component: Login},
  ]
})
